package Object;

public class PhoneTest {
    public static void main(String[] args) {
//        Phone phone = new MiPhone();
//        phone.Brand = "小米";
//        phone.SellPhone();
        Phone phone = new HuaWeiPhone("华为","mate14",6999.0);
        phone.SellPhone();
        System.out.println(phone instanceof HuaWeiPhone);
        System.out.println(phone instanceof Phone);
        System.out.println(phone instanceof MiPhone);
    }
}
